package com.shj.em.biz.sell.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.shj.em.biz.sell.entity.OrderItem;
import com.shj.em.biz.sell.mapper.OrderItemMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import com.baomidou.mybatisplus.plugins.Page;
import java.util.List;
import java.util.Map;

import com.shj.em.biz.sys.service.CdService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;


/**
 * 订单产品信息 服务实现类
 *
 * @author Shen Huang Jian
 * @since 2018-07-09
 */
@Service
@Transactional
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements OrderItemService {

    @Autowired
    OrderItemMapper orderitemMapper;

    public List<OrderItem> getItemsByOrderId(Long orderId){
        return orderitemMapper.queryOrderItemsById(orderId, CdService.CD_TYPE_UNIT);
    }
}
